Repository navigation
fix(ui): theme overlay surfaces (dialogs, drawers, menus, popovers) - #33310
Conversation
Overlays rendered on bg-primary (= page background in dark) with generic shadow-lg/xl and border-secondary dividers, so in dark mode they blended into the page with no elevation and their dividers (border-secondary = surface color in dark) were invisible. Move them to the approved semantic roles: - Modal dialog panel: bg-overlay-surface + shadow-overlay; footer/section dividers use border-subtle. - Slideout drawer: bg-overlay-surface + shadow-overlay; footer divider is now a border-subtle top border instead of an inset border-secondary shadow. - Dropdown menu and select popover: bg-raised + shadow-raised; dropdown separator is a border-subtle top border instead of a solid bg-border-secondary hairline (which did not flip in dark). All roles are no-ops in light (overlay-surface/raised/shadow-overlay/shadow-raised alias primary/xl/lg in light) and flip in dark via the existing semantic bridge, so light mode is unchanged. Tooltip keeps bg-primary-solid (a dark surface in light mode is the correct tooltip treatment). Added focused open-state theme tests for the dropdown, modal, and drawer surfaces. Fixes open-metadata/openmetadata-collate#6571 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
✅ Playwright Results — workflow succeededValidated commit ✅ 65 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 41m 46s ⏱️ Max setup 3m 2s · max shard execution 9m 33s · max shard-job elapsed before upload 13m 22s · reporting 3s 🌐 168.75 requests/attempt · 1.72 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ ApprovedFixes dark theme rendering for overlay surfaces (dialogs, drawers, menus, popovers) by applying semantic theme tokens ( OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
🚦 Removed from the merge queue —
|
Describe your changes:
Fixes open-metadata/openmetadata-collate#6571
Gate contract: open-metadata/openmetadata-collate#6564
Token foundation: #33249 (re-tint follow-up: #33294)
Themes the shared overlay/feedback core components for AI-mode dark theme. They previously rendered on
bg-primary— which is the page background in dark — with genericshadow-lg/shadow-xlandborder-secondarydividers, so in dark mode overlays blended into the page with no elevation and their dividers (darkborder-secondary= the surface color) were invisible.bg-overlay-surface+shadow-overlay; footer/section dividers →border-subtle.bg-overlay-surface+shadow-overlay; footer divider →border-subtletop border (was an insetborder-secondaryshadow).bg-raised+shadow-raised; dropdown separator →border-subtletop border (was a solidbg-border-secondaryhairline that did not flip in dark).bg-primary-solidis intentionally a dark surface in light mode (the conventional tooltip treatment).Light mode is unchanged:
overlay-surface/raisedaliasprimary, andshadow-overlay/shadow-raisedaliasxl/lg, in light — so these are no-ops in light and flip only under.dark-modevia the existing semantic bridge. Verified every utility resolves and flips on this branch by compiling the app Tailwind against a probe.Added focused open-state theme tests for the dropdown menu, modal dialog, and drawer surfaces.
Type of change:
Frontend Preview (Screenshots)
Not attached — shared primitive color-role change with no layout/interaction change. Storybook exercises Modal, Dropdown, Select, SlideoutMenu, and Tooltip.
Checklist: